package com.company;

public class Text {
    public static void main(String[] args){
     GaojiTeacther g=new GaojiTeacther();
     g.Beike();
     g.Jiangke();
     PeiyouTeacher p=new PeiyouTeacher();
     p.Beike();
     p.Jiangke();
    }
}
class Fu{
    public void Jiangke(){
        System.out.println("讲课");
    }
    public void Beike(){
        System.out.println("备课");
    }
}
class GaojiTeacther extends Fu{
    {
        System.out.print("高级老师");
    }
}
class PeiyouTeacher extends Fu{
    {System.out.print("培优老师");}
}